#include <iostream>

using namespace std;

int main() {
	int arr[5] = {300,350,200,400,250};
    int length = sizeof(arr) / sizeof(arr[0]);
    int maxIndex = 0;
    for (int i = 0; i < length; i++) {
        maxIndex = (arr[maxIndex] < arr[i]) ? i : maxIndex;
    }
    cout << arr[maxIndex];

    return 0;
}